@extends('Layout/layout')

@section('yemian')
<style type="text/css">
    .e_css {
    background: url(/public/images/lift_li_02_02.gif) no-repeat;
    width: 179px;
    font-weight: bold;
    color: #000;
    z-index: 1;
    }
</style>
<script type="text/javascript">
    $(document).ready(function(){ 
     
        document.getElementById("department").className = "e_css";
    }); 
</script>
<body class="mian_bj">
<div class="mian_top_01">
<div class="mian_top_r"></div>
<div class="mian_top_l"></div>
<div class="mian_top_c">
<ul>
<li><a href="{{ url('/department/department') }}"><p>部门管理</p></a></li>
<li><a href="{{ url('/department/post') }}"><p>岗位管理</p></a></li>
<li><a href="{{ url('/department/role') }}"><p>角色管理</p></a></li>
<li><a href="{{ url('/department/privilege/add') }}"><p>权限管理</p></a></li>
<!-- <li><a href="{{ url('/department/privilege') }}"><p>权限管理</p></a></li> -->
<!-- <li><a href="{{ url('/department/pass') }}"><p>密码修改</p></a></li> -->
<!-- <li><a href="{{ url('/department/allow') }}"><p>审批文档流程管理</p></a></li> -->
<!-- <li><a href="CustomManage.htm"><p>自定义功能管理</p></a></li> -->
</ul>
</div>
@if (count($errors) > 0)
    <div style="color: red;background-color: #c1c1c1;border-color: #d6e9c6;float:left;margin-top:10px;margin-bottom:10px;width:100%;">
        <ul>
            @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
@endif  
<div class="mian_b">
<form action="{{ url('/department/role/insert') }}" method="post">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mian_b_bg_xz">
<tr>
<td width="5%" class="mian_b_bg_lm">&nbsp;</td>
<td colspan="4" class="mian_b_bg_lm">添加角色</td>
</tr>
<tr>
<td>&nbsp;</td>
<td width="7%" valign="top">角色名称：</td>

<td width="56%"><input type="text" class="input_01" name="RoleName" id="text1"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td valign="middle">菜单导航：</td>
<td colspan="3">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mian_b_bg_xz">
@foreach($res as $k => $v)

		<tr>

		<td valign="top" colspan="3">
		<input id="Checkbox1" value="{{ $v['ClassId'] }}" name="GroupId[]" type="checkbox">{{ $v['ClassName'] }}
		</td>
		</tr>
@endforeach	

	

</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td valign="middle">备注：</td>
<td width="20%">
<input type="text" class="input_01" name="Remark" id="textfield"> </td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="4">
<div align="center"><input type="image" src="/public/images/bnt_03.gif" style="margin-right:10px;" width="80" height="22"></div></td>
</tr>
</table>
{{ csrf_field() }}
</form>
</div>
</div>
</body>

@endsection